package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.entity.Spu;
import org.springframework.transaction.annotation.Transactional;


public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> pageSpu(Long curPage, Long rows, Long bid, Long cid, Long sid, Boolean saleable);

    void saveSpu(SpuDTO spuDTO);

    void updateSpuSaleable(Long sid, Boolean saleable);

    SpuDTO queryGoodsById(Long id);

    void updateSpu(SpuDTO spuDTO);

    SpuDTO querySpuById(Long sid);
}
